package by.plisitsa.railway.datamodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;


@Entity
public class Ticket extends AbstractEntity {
	
	@Column
	private String fNamePass;
	
	@Column
	private String lNamePass;
	
	@Column
	private Integer cost;
	@Column
	private Integer ticketDist;
	
	
	@ManyToOne(fetch = FetchType.LAZY, targetEntity = UserProfile.class)
	private UserProfile userProfile;
	
	@ManyToOne(fetch = FetchType.LAZY, targetEntity = Schedule.class)
	private Schedule schedule;
	
	@ManyToOne(fetch = FetchType.LAZY, targetEntity = Wagon.class)
	private Wagon wagon;
	
	@ManyToOne(fetch = FetchType.LAZY, targetEntity = Seat.class)
	private Seat seat;
	
	@ManyToOne(fetch = FetchType.LAZY, targetEntity = Discount.class)
	private Discount discount;
	
	@ManyToOne(fetch = FetchType.LAZY, targetEntity = Invoice.class)
	private Invoice invoice;

	public String getfNamePass() {
		return fNamePass;
	}

	public void setfNamePass(String fNamePass) {
		this.fNamePass = fNamePass;
	}

	public String getlNamePass() {
		return lNamePass;
	}

	public void setlNamePass(String lNamePass) {
		this.lNamePass = lNamePass;
	}

	public Integer getCost() {
		return cost;
	}

	public void setCost(Integer cost) {
		this.cost = cost;
	}

	public Integer getTicketDist() {
		return ticketDist;
	}

	public void setTicketDist(Integer ticketDist) {
		this.ticketDist = ticketDist;
	}

	public UserProfile getUserProfile() {
		return userProfile;
	}

	public void setUserProfile(UserProfile userProfile) {
		this.userProfile = userProfile;
	}

	public Schedule getSchedule() {
		return schedule;
	}

	public void setSchedule(Schedule schedule) {
		this.schedule = schedule;
	}

	public Wagon getWagon() {
		return wagon;
	}

	public void setWagon(Wagon wagon) {
		this.wagon = wagon;
	}

	public Seat getSeat() {
		return seat;
	}

	public void setSeat(Seat seat) {
		this.seat = seat;
	}

	public Discount getDiscount() {
		return discount;
	}

	public void setDiscount(Discount discount) {
		this.discount = discount;
	}

	public Invoice getInvoice() {
		return invoice;
	}

	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}
	
}
